package com.parking.bang.rpc.serialize.base;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Interface for different serialize protocols
 * 
 * @author ivan
 *
 */
public interface RPCSerialize {
	void serialize(OutputStream output, Object object) throws IOException;

	Object deserialize(InputStream input) throws IOException;
}